package com.example.data.factory.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.data.factory.common.Dto.*;
import com.example.data.factory.common.result.R;
import com.example.data.factory.entity.entity.DatabaseInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 数据库信息 服务类
 * </p>
 *
 * @author lhy
 * @since 2025-03-03
 */
public interface DatabaseInfoService extends IService<DatabaseInfo> {

    R<DatabaseInfo> search(SerachDataBaseDto serachDataBaseDtoc);

    R<DatabaseInfo> insert(InsertDataBaseDto insertDataBaseDto, HttpServletRequest request);

    R<DatabaseInfo> updates(UpdateDataBaseDto updateDataBaseDto);

    R<DatabaseInfo> updatestatus(UpdateDataBaseStatus updateDataBaseStatus);


    R<DatabaseInfo> deletes(DeleteDataBaseDto deleteDataBaseDto);


    R<?> testDatabaseConnection(DataBaseConnectDto dataBaseConnectDto);
}
